﻿using SharpMap.Wpf.Rendering;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Windows;
using SharpMap.Styles;
using System.Windows.Media;
using SharpMap.Rendering.Rendering2D;
using System.Collections.Generic;

namespace SharpMap.Rendering.Wpf.Test
{
    
    
    /// <summary>
    ///This is a test class for ViewConverterTest and is intended
    ///to contain all ViewConverterTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ViewConverterTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for savePen
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SharpMap.Rendering.Wpf.dll")]
        public void savePenTest()
        {
            StylePen stylePen = null; // TODO: Initialize to an appropriate value
            Pen pen = null; // TODO: Initialize to an appropriate value
            ViewConverter_Accessor.savePen(stylePen, pen);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for saveFont
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SharpMap.Rendering.Wpf.dll")]
        public void saveFontTest()
        {
            StyleFont styleFont = null; // TODO: Initialize to an appropriate value
            Typeface font = null; // TODO: Initialize to an appropriate value
            ViewConverter_Accessor.saveFont(styleFont, font);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for saveBrush
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SharpMap.Rendering.Wpf.dll")]
        public void saveBrushTest()
        {
            StyleBrush styleBrush = null; // TODO: Initialize to an appropriate value
            Brush brush = null; // TODO: Initialize to an appropriate value
            ViewConverter_Accessor.saveBrush(styleBrush, brush);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for getPen
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SharpMap.Rendering.Wpf.dll")]
        public void getPenTest()
        {
            StylePen stylePen = null; // TODO: Initialize to an appropriate value
            Pen expected = null; // TODO: Initialize to an appropriate value
            Pen actual;
            actual = ViewConverter_Accessor.getPen(stylePen);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for getFont
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SharpMap.Rendering.Wpf.dll")]
        public void getFontTest()
        {
            StyleFont styleFont = null; // TODO: Initialize to an appropriate value
            Typeface expected = null; // TODO: Initialize to an appropriate value
            Typeface actual;
            actual = ViewConverter_Accessor.getFont(styleFont);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for getBrush
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SharpMap.Rendering.Wpf.dll")]
        public void getBrushTest()
        {
            StyleBrush styleBrush = null; // TODO: Initialize to an appropriate value
            Brush expected = null; // TODO: Initialize to an appropriate value
            Brush actual;
            actual = ViewConverter_Accessor.getBrush(styleBrush);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertPointsToFontSize
        ///</summary>
        [TestMethod()]
        public void ConvertPointsToFontSizeTest()
        {
            double emPoint = 0F; // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = ViewConverter.ConvertPointsToFontSize(emPoint);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertFontWeight
        ///</summary>
        [TestMethod()]
        public void ConvertFontWeightTest()
        {
            StyleFontStyle fontStyle = new StyleFontStyle(); // TODO: Initialize to an appropriate value
            FontWeight expected = new FontWeight(); // TODO: Initialize to an appropriate value
            FontWeight actual;
            actual = ViewConverter.ConvertFontWeight(fontStyle);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertFontStyle
        ///</summary>
        [TestMethod()]
        public void ConvertFontStyleTest()
        {
            StyleFontStyle fontStyle = new StyleFontStyle(); // TODO: Initialize to an appropriate value
            FontStyle expected = new FontStyle(); // TODO: Initialize to an appropriate value
            FontStyle actual;
            actual = ViewConverter.ConvertFontStyle(fontStyle);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ConvertFontDecoration
        ///</summary>
        [TestMethod()]
        public void ConvertFontDecorationTest()
        {
            StyleFontStyle fontStyle = new StyleFontStyle(); // TODO: Initialize to an appropriate value
            TextDecorationCollection expected = null; // TODO: Initialize to an appropriate value
            TextDecorationCollection actual;
            actual = ViewConverter.ConvertFontDecoration(fontStyle);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for convertDashStyle
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SharpMap.Rendering.Wpf.dll")]
        public void convertDashStyleTest()
        {
            LineDashStyle lineDashStyle = new LineDashStyle(); // TODO: Initialize to an appropriate value
            float[] dashPattern = null; // TODO: Initialize to an appropriate value
            double offset = 0F; // TODO: Initialize to an appropriate value
            DashStyle expected = null; // TODO: Initialize to an appropriate value
            DashStyle actual;
            actual = ViewConverter_Accessor.convertDashStyle(lineDashStyle, dashPattern, offset);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert2Vector
        ///</summary>
        [TestMethod()]
        public void Convert2VectorTest()
        {
            Point2D point = new Point2D(); // TODO: Initialize to an appropriate value
            Vector expected = new Vector(); // TODO: Initialize to an appropriate value
            Vector actual;
            actual = ViewConverter.Convert2Vector(point);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest18()
        {
            Size sizeF = new Size(); // TODO: Initialize to an appropriate value
            Size2D expected = new Size2D(); // TODO: Initialize to an appropriate value
            Size2D actual;
            actual = ViewConverter.Convert(sizeF);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest17()
        {
            Point point = new Point(); // TODO: Initialize to an appropriate value
            Point2D expected = new Point2D(); // TODO: Initialize to an appropriate value
            Point2D actual;
            actual = ViewConverter.Convert(point);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest16()
        {
            Matrix2D viewMatrix = null; // TODO: Initialize to an appropriate value
            Matrix expected = new Matrix(); // TODO: Initialize to an appropriate value
            Matrix actual;
            actual = ViewConverter.Convert(viewMatrix);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest15()
        {
            Rect rectangle = new Rect(); // TODO: Initialize to an appropriate value
            Rectangle2D expected = new Rectangle2D(); // TODO: Initialize to an appropriate value
            Rectangle2D actual;
            actual = ViewConverter.Convert(rectangle);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest14()
        {
            IEnumerable<Point2D> viewPoints = null; // TODO: Initialize to an appropriate value
           
            Point[] expected = null; // TODO: Initialize to an appropriate value
            Point[] actual;
            actual = ViewConverter.Convert(viewPoints);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest13()
        {
            IEnumerable<Point2D> viewPoints = null; // TODO: Initialize to an appropriate value
            Point[] expected = null; // TODO: Initialize to an appropriate value
            Point[] actual;
            actual = ViewConverter.Convert(viewPoints);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest12()
        {
            Color color = new Color(); // TODO: Initialize to an appropriate value
            StyleColor expected = new StyleColor(); // TODO: Initialize to an appropriate value
            StyleColor actual;
            actual = ViewConverter.Convert(color);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest11()
        {
            Rectangle2D rectangle = new Rectangle2D(); // TODO: Initialize to an appropriate value
            Rect expected = new Rect(); // TODO: Initialize to an appropriate value
            Rect actual;
            actual = ViewConverter.Convert(rectangle);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest10()
        {
            Brush wpfBrush = null; // TODO: Initialize to an appropriate value
            StyleBrush expected = null; // TODO: Initialize to an appropriate value
            StyleBrush actual;
            actual = ViewConverter.Convert(wpfBrush);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest9()
        {
            StyleBrush brush = null; // TODO: Initialize to an appropriate value
            Brush expected = null; // TODO: Initialize to an appropriate value
            Brush actual;
            actual = ViewConverter.Convert(brush);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest8()
        {
            Point2D viewPoint = new Point2D(); // TODO: Initialize to an appropriate value
            Point expected = new Point(); // TODO: Initialize to an appropriate value
            Point actual;
            actual = ViewConverter.Convert(viewPoint);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest7()
        {
            Symbol2D symbol2D = null; // TODO: Initialize to an appropriate value
            ImageSource expected = null; // TODO: Initialize to an appropriate value
            ImageSource actual;
            actual = ViewConverter.Convert(symbol2D);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest6()
        {
            Size2D viewSize = new Size2D(); // TODO: Initialize to an appropriate value
            Size expected = new Size(); // TODO: Initialize to an appropriate value
            Size actual;
            actual = ViewConverter.Convert(viewSize);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest5()
        {
            Pen pen = null; // TODO: Initialize to an appropriate value
            StylePen expected = null; // TODO: Initialize to an appropriate value
            StylePen actual;
            actual = ViewConverter.Convert(pen);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest4()
        {
            StyleColor color = new StyleColor(); // TODO: Initialize to an appropriate value
            Color expected = new Color(); // TODO: Initialize to an appropriate value
            Color actual;
            actual = ViewConverter.Convert(color);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest3()
        {
            Matrix viewMatrix = new Matrix(); // TODO: Initialize to an appropriate value
            Matrix2D expected = null; // TODO: Initialize to an appropriate value
            Matrix2D actual;
            actual = ViewConverter.Convert(viewMatrix);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest2()
        {
            StyleFontFamily fontFamily = null; // TODO: Initialize to an appropriate value
            FontFamily expected = null; // TODO: Initialize to an appropriate value
            FontFamily actual;
            actual = ViewConverter.Convert(fontFamily);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertStylePen2WpfPenTest()
        {
            StylePen pen = null; // TODO: Initialize to an appropriate value
            Pen expected = null; // TODO: Initialize to an appropriate value
            Pen actual;
            actual = ViewConverter.Convert(pen);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Convert
        ///</summary>
        [TestMethod()]
        public void ConvertTest()
        {
            StyleFont styleFont = null; // TODO: Initialize to an appropriate value
            Typeface expected = null; // TODO: Initialize to an appropriate value
            Typeface actual;
            actual = ViewConverter.Convert(styleFont);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for AttachRenderMode
        ///</summary>
        [TestMethod()]
        public void AttachRenderModeTest()
        {
            DependencyObject target = null; // TODO: Initialize to an appropriate value
            StyleRenderingMode renderingMode = new StyleRenderingMode(); // TODO: Initialize to an appropriate value
            ViewConverter.AttachRenderMode(target, renderingMode);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
    }
}
